home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 22 / AMIGAplus Sonderheft 22 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Vollversion / NEMAC_4 / Install < prev    next >
Text File  |  1996-09-01  |  9KB  |  188 lines

  1. ; Installation script for NEMAC IV Version 1.1 Director's Cut / CD-Version
  2.  
  3. (complete 0)
  4. (set disk0 "NEMAC_4_CD:")
  5. (set instdir (cat disk0 "i/"))
  6. (set nemacname "NEMAC_4")
  7. (set nemacdirn "NEMAC_4")
  8. (set nemacconf1 "config")
  9. (set nemacconf2 ".config")
  10. (set nemacpath "NEMAC_4.path")
  11. (set mazename "maze.cld")
  12. (set moviename "movies.ani")
  13.  
  14. (set langtext "Please select your language to run the Installer.\n\nBitte wählen Sie Ihre Sprache für den Installer aus.\n")
  15.  
  16. (set language (askchoice (prompt langtext) (help "So what did I say?") (choices "English" "Deutsch")))
  17.  
  18. (if language
  19.     (
  20.         (set t2 "Ich habe die folgende Systemkonfiguration gefunden:\n\n")
  21.         (set t3 "\nSie benötigen Amiga OS 2.0 oder besser, um dieses Programm starten zu können.\n")
  22.         (set t4 "\nDas Programm benötigt eine MC68020 CPU oder besser.\n")
  23.         (set t5 "\nDas Programm benötigt mindestens 1.7MB freien Speicher. Ich nehme an, daß Sie eine Applikation laufen haben...\n")
  24.         (set t6 "Die Installation wird abgebrochen.")
  25.         (set t7 "Systemkonfiguration erlaubt nicht das Laufenlassen des Spiels.")
  26.         (set t8 "\nDie Konfiguration ist ausreichend.")
  27.         (set t9 "Ich beginne jetzt mit der Installation.\nMöchten sie ...")
  28.         (set t11 "Bitte wählen aus, wo das Verzeichnis \"NEMAC_4\" angelegt werden soll.")
  29.         (set t12 "Bitte wählen Sie nun aus, wo das Verzeichnis \"NEMAC_4\" angelegt werden soll.\n\nSollten Sie eine bestehende ")
  30.         (set t12 (cat t12 "Version updaten wollen (zum Beispiel eine Demoversion, um die saved_games zu behalten), so wechseln "))
  31.         (set t12 (cat t12 "Sie bitte einfach in das verzeichnis, in dem sich das Verzeichnis \"NEMAC_4\" befindet."))
  32.         (set t14 "Erstelle das Verzeichnis \"NEMAC_4\"...")
  33.         (set t15 "Die Installation beginnt jetzt.")
  34.         (set t17 "Kopiere Programm...")
  35.         (set t19 "Kopiere .config-File")
  36.         (set t21 "Kopiere Leveldaten...")
  37.         (set t23 "Zum Schluß muß noch eine Variable für die Animationen konfiguriert werden. Von den Animationen gibt es zwei Versionen: ")
  38.         (set t23 (cat t23 "Eine normale mit geringer Auflösung und eine mit etwas höherer Auflösung. Für diese wird allerdings mindestens ein "))
  39.         (set t23 (cat t23 "4x-Speed-CD-ROM sowie eine leistungsfähige CPU und eine Auflösung > 240x150 benötigt. Bitte wählen Sie diese Option "))
  40.         (set t23 (cat t23 "nur, wenn dies alles zutrifft. Wenn Sie nicht sicher sind, nehmen Sie lieber die kleinere Auflösung und installieren "))
  41.         (set t23 (cat t23 "Sie gegebenenfalls nochmal. Dabei gehen keine Daten verloren!"))
  42.         (set t24 "Bitte wählen Sie nun die Auflösung:")
  43.         (set ta241 "Normal")
  44.         (set ta242 "Höher")
  45.  
  46.         (set t25 "Lesen Sie bitte unbedingt vor dem ersten Start die komplette Dokumentation durch!\n\nIn diesem File sind viele wichtige ")
  47.         (set t25 (cat t25 "Hinweise, die Sie benötigen werden, um das Spiel zu spielen!"))
  48.         (set t26 "Erzeuge Variable")
  49.  
  50.         (set cht1 "normal installieren")
  51.         (set cht2 "Eine bestehende Installation (Demo) updaten.")
  52.         (set ta "Dieses Installationsskript wird ein Verzeichnis anlegen, in dem sich das Programm Nemac IV und seine Leveldaten befinden werden.\n")
  53.         (set ta (cat ta "Zum späteren Starten des Spiels benötigen Sie die CD in dem CD-Laufwerk.\n\nAls erstes wird Ihre Konfiguration geprüft."))
  54.  
  55.         (set h3 "Ihre Systemkonfiguration wird überprüft, ob sie ausreicht, um das Spiel starten zu können.")
  56.         (set h4 "Um eine bestehende NEMAC IV Installation zu updaten, müssen Sie das korrekte Verzeichnis angeben.\n\n")
  57.         (set h4 (cat h4 "Wenn Sie trotzdem weitermachen und sich im falschen Verzeichnis befinden, wird automatisch eine Vollinstallation"))
  58.         (set h4 (cat h4 " in diesem Verzeichnis durchgeführt."))
  59.  
  60.     )
  61.     (
  62.         (set t23 "Last but not least a variable for the animations has to be set. There exist two version of the animations on this CD: ")
  63.         (set t23 (cat t23 "First, the normal one with a lower resolution and second, one with alittle higher resolution. For the last one you "))
  64.         (set t23 (cat t23 "will need a 4x-speed-CD-ROM, a really powerful CPU und a window size of > 240x150, or regarding better ones. Please choose "))
  65.         (set t23 (cat t23 "this option only if all this applies to your configuration. If you are not totally sure, please choose the first option "))
  66.         (set t23 (cat t23 "and install later again using the last option. If will do so, no data will be lost."))
  67.         (set t24 "Please select the video resolution:")
  68.         (set ta241 "Normal")
  69.         (set ta242 "Higher")
  70.  
  71.         (set t2 "I found the following system configuration:\n\n")
  72.         (set t3 "\nYou need Amiga OS 2.0 or better to run the program.\n")
  73.         (set t4 "\nThe program requires a MC68020 CPU or better.\n")
  74.         (set t5 "\nThe program requires a minimum of 1.7MB free RAM to run. Assuming that a application is running...\n")
  75.         (set t6 "Installation is aborted.")
  76.         (set t7 "System configuration doesn't allow running the game.")
  77.         (set t8 "\nYour configuration is suitable.")
  78.         (set t9 "Installation starts now.\nDo you want to ...")
  79.         (set t11 "Please choose the location where the directory \"NEMAC_4\" will be created.")    
  80.         (set t12 "Please select now the directory where the directory \"NEMAC_4\" should be created.\n\nIf you already have a version of NEMAC IV and ")
  81.         (set t12 (cat t12 "and want to update this version "))
  82.         (set t12 (cat t12 "(for example a demo to keep the saved_games), then please select the directory where the directory \"NEMAC_4\" is located.")) 
  83.         (set t14 "Creating directory \"NEMAC_4\"...")
  84.         (set t15 "The installation starts now.")
  85.         (set t17 "Copying program...")
  86.         (set t19 "Copying .config-file")
  87.         (set t21 "Copying level database...")
  88.         (set t25 "We strongly recommend you to read the complete documentation before starting!\n\nIn this file there are many important ")
  89.         (set t25 (cat t25 "hints that you may need to play the game..."))
  90.         (set t26 "Creating variable.")
  91.         (set cht1 "install normally")
  92.         (set cht2 "update an existing installation (demo)")
  93.         (set ta "This install script will create a directory, that will contain the main program of NEMAC IV and its level database.\n\n")
  94.         (set ta (cat ta "When you start the game, the NEMAC IV-CD must be in your CD-drive.\n\nThe first step is to test your configuration."))
  95.  
  96.         (set h3 "You system configuration is checked to see you can run the game.")
  97.         (set h4 "For updating an existing NEMAC IV installation, you have to select the proper directory.\n\n")
  98.         (set h4 (cat h4 "If you continue although you are in a wrong directory, I will automatically do a complete installation."))           
  99.  
  100.     )
  101. )
  102.  
  103. (message ta)
  104.         
  105. (set cputype (+ (database ("cpu"))))
  106. (set chipmem (+ (database ("graphics-mem"))))
  107. (set totalmem (+ (database ("total-mem"))))
  108. (set fastmem (- totalmem chipmem))
  109. (set osversion (/ (getversion) 65536))
  110.  
  111. (set showos ">3.1")
  112. (if (< osversion 39) (set showos "2.0"))
  113. (if (< osversion 36) (set showos "<2.0"))
  114. (if (= osversion 39) (set showos "3.0"))
  115. (if (= osversion 40) (set showos "3.1"))
  116.  
  117. (set text1 ("OS Version  :  %s\nCPU  :  %ld\nChip Memory  :  %ld\nFast Memory  :  %ld\n" showos cputype chipmem fastmem))
  118.  
  119. (set text (cat t2 text1))
  120. (set abortcheck 0)
  121. (if (< osversion 36)
  122.     (    
  123.         (set text (cat text t3))
  124.          (set abortcheck 1)
  125.      )
  126. )
  127.  
  128.  
  129. (if (< cputype 68020)
  130.     (    (set text (cat text t4))
  131.          (set abortcheck 1)
  132.      ))
  133.  
  134. (set memfree (if (< chipmem fastmem) fastmem chipmem))
  135. (if (< memfree 1700000) (set text (cat text t5)))
  136.  
  137. (if abortcheck
  138.     (
  139.         (set text (cat text t6))
  140.         (message text (help h3))
  141.         (abort t7)
  142.     )
  143. )        
  144.  
  145. (complete 5)
  146. (set text (cat text t8))
  147. (message text (help h3))
  148.  
  149. (message t12)
  150. (set dirname (askdir (prompt (if update t12 t11)) (help @askdir-help) (default @default-dest) (disk)))
  151. (set @default-dest dirname)
  152.  
  153. (message t15)
  154. (complete 10)
  155. (set ddir (tackon dirname nemacdirn))
  156. (if (exists ddir)
  157.     (set nop 1)
  158.     (makedir ddir (prompt t14) (help @makedir-help) (infos)))  
  159.  
  160. (set ddir (tackon dirname nemacdirn))
  161. (set nemac4name (tackon instdir nemacname))
  162.  
  163. (copylib (prompt t17) (source nemac4name) (dest ddir) (infos) (help @copylib-help))
  164.  
  165. (complete 30)
  166.  
  167. (if (exists (tackon ddir nemacconf2))
  168.     (rename (tackon ddir nemacconf2) (cat ".old_" nemacconf2)))
  169.  
  170. (copyfiles (prompt t19) (source (tackon instdir nemacconf1)) (dest ddir) (infos) (help @copyfiles-help))
  171. (rename (tackon dd